<?xml version="1.0" encoding="UTF-8"?>
<handler name="Users">
	<results>
		<!-- blogX error results -->
		<result value="error_admin"  type="page" sect="errors" sub="blogX" proc="error" page="admin">user is not a blogspace administrator</result>
		<result value="error_blogx"  type="page" sect="errors" sub="blogX" proc="error" page="general">general</result>
		<result value="error_delete"  type="page" sect="errors" sub="blogX" proc="error" page="admin">cannot delete blogspace admin</result>
		<result value="error_confirm"  type="page" sect="errors" sub="blogX" proc="error" page="confirm">new password is not confirmed</result>
		<result value="error_duplicate" type="page" sect="errors" sub="blogX" proc="error" page="duplicate">blogspace with this name exists</result>
		<result value="error_exists"  type="page" sect="errors" sub="blogX" proc="error" page="exist">user with this name exists</result>
		<result value="error_spaceexist"  type="page" sect="errors" sub="blogX" proc="error" page="exists">blogspace does not exist</result>
		<result value="error_userexist"  type="page" sect="errors" sub="blogX" proc="error" page="exists">user does not exist</result>
		<result value="error_expired"  type="page" sect="errors" sub="blogX" proc="error" page="expired">token expired</result>
		<result value="error_group"  type="page" sect="errors" sub="blogX" proc="error" page="group">unknown rights group</result>
		<result value="error_inactive" type="page" sect="errors" sub="blogX" proc="error" page="inactive">blogspace is not active</result>
		<result value="error_loadblog" type="page" sect="errors" sub="blogX" proc="error" page="loadblog">blog not loaded</result>
		<result value="error_loadspace" type="page" sect="errors" sub="blogX" proc="error" page="loadspace">blogspace not loaded</result>
		<result value="error_notexist" type="page" sect="errors" sub="blogX" proc="error" page="notexist">user with this name does not exist</result>
		<result value="error_notoken"  type="page" sect="errors" sub="blogX" proc="error" page="notoken">user is not logged on</result>
		<result value="error_password" type="page" sect="errors" sub="blogX" proc="error" page="password">incorrect password</result>
		<result value="error_right"  type="page" sect="errors" sub="blogX" proc="error" page="right">access denied</result>
		<result value="error_valid"  type="page" sect="errors" sub="blogX" proc="error" page="valid">token not valid</result>
		<result value="notOK"  type="page" sect="errors" sub="blogX" proc="error" page="general">general</result>
	</results>
	<process name="List" updateprofile="yes">
		<call type="soap" fields="no" operation="ListUsers">
			<parameter name="token" type="token"/>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="contentxml" sect="site" sub="admin" proc="users" page="list">OK</result>
		</results>
	</process>
	<process name="ListSubscribers" updateprofile="yes">
		<call type="soap" fields="no" operation="ListUsersByGroup">
			<parameter name="token" type="token"/>
			<parameter name="group" type="value">public</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="contentxml" sect="site" sub="admin" proc="users" page="list">OK</result>
		</results>
	</process>
	<!-- Get/Add user details -->
	<process name="Get" updateprofile="yes">
		<call type="soap" fields="no" operation="GetUser">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="page" sect="users" sub="profile" proc="details" page="edit">OK</result>
		</results>
	</process>
	<process name="Edit" updateprofile="yes">
		<call type="soap" fields="no" operation="EditUser">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
			<parameter name="firstname" type="profile">Firstname</parameter>
			<parameter name="surname" type="profile">Surname</parameter>
			<parameter name="email" type="profile">Email</parameter>
			<parameter name="telno" type="profile">Telno</parameter>
			<parameter name="group" type="profile">Group</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="process">List</result>
		</results>
	</process>
	<process name="Add" updateprofile="yes">
		<call type="soap" fields="no" operation="AddUser">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
			<parameter name="firstname" type="profile">Firstname</parameter>
			<parameter name="surname" type="profile">Surname</parameter>
			<parameter name="email" type="profile">Email</parameter>
			<parameter name="telno" type="profile">Telno</parameter>
			<parameter name="secret" type="profile">Secret</parameter>
			<parameter name="password" type="profile">Password</parameter>
			<parameter name="group" type="profile">Group</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="process">List</result>
		</results>
	</process>
	<process name="Delete" updateprofile="yes">
		<call type="soap" fields="no" operation="RemoveUser">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="process">List</result>
		</results>
	</process>
	<!-- Get User details for editing/deleting (same as for 'Authors', but different pages)-->
	<process name="GetAdd" updateprofile="yes">
		<call type="soap" fields="no" operation="ListUsers">
			<parameter name="token" type="token"/>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="contentxml" sect="site" sub="admin" proc="users" page="add">OK</result>
		</results>
	</process>
	<process name="GetEdit" updateprofile="yes">
		<call type="soap" fields="no" operation="GetUserSpaces">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">SpaceUser</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="contentxml" sect="site" sub="admin" proc="users" page="edit">OK</result>
		</results>
	</process>
	<process name="GetDel" updateprofile="yes">
		<call type="soap" fields="no" operation="GetUser">
			<parameter name="token" type="token"/>
			<parameter name="name" type="query">id</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="page" sect="site" sub="admin" proc="users" page="delete">OK</result>
		</results>
	</process>
	<!-- Get/Add user blog -->
	<process name="GetBlog" updateprofile="yes">
		<call type="soap" fields="no" operation="GetUserBlog">
			<parameter name="token" type="token"/>
			<parameter name="name" type="query">id</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="error_loadblog">
			<result value="0" type="page" sect="site" sub="admin" proc="users" page="about">OK</result>
			<result value="error_loadblog" type="page" sect="site" sub="admin" proc="users" page="about">No About Blog</result>
		</results>
	</process>
	<process name="AddBlog" updateprofile="yes">
		<call type="soap" fields="no" operation="AddUserBlog">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
			<parameter name="title" type="profile">Title</parameter>
			<parameter name="html" type="profile">Text</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="process">List</result>
		</results>
	</process>
	<!-- Change user login details -->
	<process name="ChangeLogin" updateprofile="yes">
		<call type="soap" fields="no" operation="ChangeLogin">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
			<parameter name="password" type="profile">Password</parameter>
			<parameter name="secret" type="profile">Secret</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="page" sect="users" sub="profile" proc="login" page="ok">OK</result>
		</results>
	</process>
	<!-- Get/Add user-blogspace details -->
	<process name="GetSpaces" updateprofile="yes">
		<call type="soap" fields="no" operation="GetUserSpaces">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="error_loadblog">
			<result value="0" type="contentxml" sect="site" sub="admin" proc="users" page="edit">OK</result>
		</results>
	</process>
	<process name="GetSpacesID" updateprofile="yes">
		<call type="soap" fields="no" operation="GetUserSpaces">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">id</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="error_loadblog">
			<result value="0" type="contentxml" sect="site" sub="admin" proc="users" page="edit">OK</result>
		</results>
	</process>
	<process name="GetAddSpace" updateprofile="yes">
		<call type="soap" fields="no" operation="ListSpaces">
			<parameter name="token" type="token"/>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="page" sect="site" sub="admin" proc="users" page="addspace">add user-space</result>
		</results>
	</process>
	<process name="AddSpace" updateprofile="yes">
		<call type="soap" fields="no" operation="AddUserSpace">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
			<parameter name="spacename" type="profile">Spaces</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="process">GetSpaces</result>
			<result value="error_exists" type="page" sect="site" sub="admin" proc="users" page="spaceexists">user-space exists</result>
		</results>
	</process>
	<process name="DeleteSpace" updateprofile="yes">
		<call type="soap" fields="no" operation="DeleteUserSpace">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
			<parameter name="spacename" type="query">id</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="process">GetSpaces</result>
		</results>
	</process>
	<process name="DefaultSpace" updateprofile="no">
		<call type="soap" fields="no" operation="DefaultUserSpace">
			<parameter name="token" type="token"/>
			<parameter name="name" type="profile">Username</parameter>
			<parameter name="spacename" type="query">id</parameter>
		</call>
		<errors file="handler_errors.xml"/>
		<results type="node" value="//Result/Result_Code" default="0">
			<result value="0" type="process">GetSpaces</result>
		</results>
	</process>
</handler>